#ifndef Used_XG_AngleBetweenCoords
#define Used_XG_AngleBetweenCoords

library HcAngleBetweenCoords
//某坐标到某坐标的角度
function XG_AngleBetweenCoords takes real x1, real y1, real x2, real y2 returns real
    local real nx2 = x1 - x2
    local real ny2 = y1 - y2
    return SquareRoot( nx2*nx2 + ny2*ny2 )
endfunction

#endif
